package com.um.jdy.common.baofu.service.impl;

import com.um.jdy.common.baofu.dao.BaofuRefundDao;
import com.um.jdy.common.baofu.dao.BaofuUserDao;
import com.um.jdy.common.baofu.entity.po.BaofuRefund;
import com.um.jdy.common.baofu.entity.po.BaofuUser;
import com.um.jdy.common.baofu.service.BaofuRefundService;
import com.um.jdy.common.baofu.service.BaofuService;
import com.um.springboot.starter.orm.service.BaseEntityServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 服务实现类：宝付用户表
 */
@Service
@Slf4j
public class BaofuRefundServiceImpl extends BaseEntityServiceImpl<BaofuRefundDao, BaofuRefund> implements BaofuRefundService {
    @Override
    public void addRefund(BaofuRefund refund) {
        refund.setCreateTime(new Date());
        refund.setBaofuRefundId(createUUIDPrimaryId());
        addRow(refund);
    }
}
